Programming with QuickTime VR

| Previous | Chapter contents | Chapter top | Section top | Next |

QTVRCoordToAngles

You can use the QTVRCoordToAngles function to get the pan and tilt angles of a floating-point coordinate in a panorama.

OSErr QTVRCoordToAngles (
                     QTVRInstance qtvr,
                     QTVRFloatPoint*coord,
                     float*panAngle,
                     float*tiltAngle);
qtvr
An instance of a QuickTime VR movie.
coord
On entry, a pointer to a QTVRFloatPoint structure that specifies a coordinate in the full panorama.
panAngle
On entry, a pointer to a floating-point value. On exit, that value contains the pan angle of the specified coordinate.
tiltAngle
On entry, a pointer to a floating-point value. On exit, that value contains the tilt angle of the specified coordinate.
function result
A result code.

DESCRIPTION

The QTVRCoordToAngles function returns, in the floating-point values pointed to by the panAngle and tiltAngle parameters, the pan and tilt angles of the point specified by the coord parameter. This function is useful for setting up angles in a back buffer imaging procedure; if you know a coordinate in the back buffer, you can call QTVRCoordToAngles to get the corresponding angles.

SPECIAL CONSIDERATIONS

QTVRCoordToAngles is valid only for panoramic nodes.

SEE ALSO

Use QTVRAnglesToCoord (next) to get a floating-point coordinate from a pair of pan and tilt angles.


© 1997 Apple Computer, Inc.

| Previous | Chapter contents | Chapter top | Section top | Next |